<?php

/**
 * @author christian
 * @copyright 2011
 * @abstract carga de todo el itinerario que es parte de un tour del itenario del tour
 */
 
 

$ruta=$_SERVER['DOCUMENT_ROOT']."/viventura"."/MDCostos";
include_once("$ruta/conf/CConfig.php");
include_once("$ruta/elements/head.tpl");
include_once("$ruta/MDItinerary/Restaurant/CTableRestaurant.php");
include_once("$ruta/MDItinerary/MDItineraryEditDraw.php");
include_once("$ruta/MDCostosGeneral/CDrawPageReg.php");
include_once("$ruta/MDCostosGeneral/CTourEditDraw.php");
include_once("$ruta/view/CDrawMenuTour.php");
include_once("$ruta/star.php");


$items=array("Transporte"=>"","Entradas"=>"CSmallDefinePack.php","Guías locales"=>"CTourEdit.php?codigo=159&default=2",
                 "Alojamientos"=>"/viventura/MDTour/","Restaurantes"=>"","Servicios de terceros"=>"","Tour Conductor"=>"","</br><em>Ver tours</em>"=>"","<em>Gestión actividades</em>"=>"");

echo "<div id='top'></div>";

CDrawMenuTour::getInstance()->setMenu($items);
CDrawMenuTour::getInstance()->rigth_side_begin();//empieza lado derecho 
CDrawMenuTour::getInstance()->DrawDivAdBegin("content_area_user_title","1");echo "<h1>Destino Sur</h1>";


$idPackTour=$_GET['codigo']; // El código que recibe aqui es el código del tour
$idTour = CTourEditDraw::getInstance()->getAnyId("pack_has_tour","idPackTour",$idPackTour,"TOUR_idTour");
MDItineraryEditDraw::getInstance()->HiddenValue($idTour, "idTour");

echo "<div id='dashboard_info'>";



/** Registro */



$campos = array("CodIte"=>"Código","NumRecRes"=>"Recibo","CanIteRec"=>"Cantidad","MonPag"=>"Moneda","MonSol"=>"Soles", "AceRec"=>"Aceptado", "MonTot"=>"Total", "DatIn"=>"Inicio", "DatOut"=>"Final", "DrivTran"=>"Transportista");

CTableRestaurant::getInstance()->DrawTable("Transporte","transporte_has_pack_has_tour",$campos,$idPackTour);

/** Registro */

CDrawPageReg::getInstance()->DrawHideSectionBeg();

    $action="MCRegistroRestaurant.php";$name="formulario_registro";$method="post";$NAME="Añadir factura: ";
    CDrawPageReg::getInstance()->DrawHead($action,$name,$method,$NAME);
    $ahead_behind=array("CodIte"=>"Código","NumRecRes"=>"Número del recibo","CanIteRec"=>"Cantidad","PriUni"=>"Precio Unitario","MonPag"=>"Moneda de pago","MonCha"=>"Tipo de Cambio");
    CDrawPageReg::getInstance()->DrawTextBox($ahead_behind);
    echo "<p align='right'>";
    CDrawPageReg::getInstance()->DrawSubmmit("Añadir");
    echo "</p>";
    echo "</div>";


CDrawPageReg::getInstance()->DrawHideSectionEnd("Registrar");


//////


CDrawMenuTour::getInstance()->DrawDivAdEnd();
echo "<div id='ancla'></div>";

echo "<a href='#top'>Inicio </a>"
    
?>  



<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript"> 
$(document).ready(function(){
$(".flip").click(function(){
    $(".panel").slideToggle("slow");
  });
});
</script>
